package tqq.action.chain;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;


public class Test {
	@SuppressWarnings({ "resource", "unchecked", "rawtypes" })
	public static void getFile(String path) throws Exception{
		BufferedReader read= new BufferedReader(new FileReader(path));
		List<String> list = new ArrayList<>();
		Long s = System.currentTimeMillis();
		read.lines().map(cost->cost.trim()).forEach((e)->{ list.add(e); });
		System.out.println(String.join(",\n", list));
		System.out.println(System.currentTimeMillis()-s);
		
		read.close();
		
//		System.out.println(String.join(",\n", list));
	}
	
	public static void main(String[] args) {
		try {
			getFile("D:\\1.txt");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
/*	public static void main(String[] args) {
		//������
		
		AbstractHandle hand = new MyHandle("tqq");
		AbstractHandle hand2 = new MyHandle("tqq2");
		AbstractHandle hand3 = new MyHandle("tqq3");
		
		hand.setHandle(hand2);
		hand2.setHandle(hand3);
		
		hand.operator();
	}*/
}
class Enty<K,V>{
	private K key;
	private V val;
	
	public Enty() { }
	
	public Enty(K key, V val) {
		this.key = key;
		this.val = val;
	}

	public K getKey() {
		return key;
	}
	public void setKey(K key) {
		this.key = key;
	}
	public V getVal() {
		return val;
	}
	public void setVal(V val) {
		this.val = val;
	}
	
}
